package com.aaa.service.front.Impl;

import com.aaa.entity.ShoppingCart;
import com.aaa.mapper.front.ShoppingCartMapper;
import com.aaa.service.front.IShoppingCartService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class ShoppingCartServiceImpl implements IShoppingCartService {

    @Resource
    private ShoppingCartMapper shoppingCartMapper;
    @Override
    public ShoppingCart findCartUserInfoId(Integer userInfoId) {
        return shoppingCartMapper.findCartUserInfoId(userInfoId);
    }

    @Override
    public int insertCart(ShoppingCart shoppingCart) {
        return shoppingCartMapper.insertCart(shoppingCart);
    }
}
